{template 'admin','header'}
<form action="{$self_url}?action={$action}" method="post" name="myform" onsubmit="r_submit(this);">
    {if $action=='status_edit'}
    <input type="hidden" name="value" value="{$data['value']}">
    {/if}
    <input type="hidden" name="forward" value="{HTTP_REFERER}">
    <table cellpadding="0" cellspacing="1" class="table_form">
        <caption>{if $action=='status_edit'}修改{else}添加{/if}内容状态</caption>
        {if $action =='status_add'}
        <tr>
            <th><strong>标识</strong></th>
            <td>
                <input type="text" name="data[id]" value="">	  
                <font color="red">*</font>
            </td>
        </tr>
        <tr>
            <th><strong>状态值</strong></th>
            <td>
                <select name="data[value]" id="value"  size="1">
                    {loop $unused_status $i}
                    <option value="{$i}" >{$i}</option>
                    {/loop}
                </select>	  
                <font color="red">*</font>
            </td>
        </tr>
        {/if}
        <tr>
            <th><strong>状态名称</strong></th>
            <td><input type="text" name="data[name]" id="name" size="30" value="{$data['name']}"> <font color="red">*</font></td>
        </tr>
        <tr>
            <th><strong>状态描述</strong></th>
            <td><textarea name="data[description]" id="description" rows="2" cols="20" id="description" class="inputtext" style="height:100px;width:300px;">{$data['description']}</textarea></td>
        </tr>
        <tr>
            <th></th>
            <td>
                <input type="submit" name="submitform" value=" 确定 ">
                &nbsp; <input type="button" name="return" value=" 返回 " onclick="window.location='{HTTP_REFERER}'">
            </td>
        </tr>

    </table>
</form>
{template 'admin','footer'}
